import ajax from './ajax';

export const BASE_URL = 'https://wxapp.bbiji.com/api/';


//用户授权登陆
export const wxAppLogin = (params) => ajax(BASE_URL + 'auth/wxAppLogin', params, 'POST');
//绑定手机号
export const bindingPhone = (params) => ajax(BASE_URL+'auth/bindingPhone', params, 'POST');
//绑定手机号
export const bindingPhoneV2 = (params) => ajax(BASE_URL+'auth/bindingPhoneV2', params, 'POST');
//发送验证码
export const sendVerificationCode = (params) => ajax(BASE_URL+'auth/sendVerificationCode', params,'POST');
//检查是否具有创建圈子的基础条件（是否绑定了手机）
export const getCircleApplicationPermission = (params) => ajax(BASE_URL+'circle/getCircleApplicationPermission', params);
//获取banner列表
export const getBannerList = (params) => ajax(BASE_URL+'other/getBannerList', params);
//获取手机号
export const getWeChatPhone = (params) => ajax(BASE_URL+'auth/getWeChatPhone', params,'POST');


//首页
    //获取首页我关注用户的动态
    export const myFollowUserActive = (params) => ajax(BASE_URL+'article/myFollowUserActive', params);
    //获取首页热门帖子
    export const recommendHotArticle = (params) => ajax(BASE_URL+'article/recommendHotArticle', params);

//搜索
	//全局搜索
	export const searchAll = (params) => ajax(BASE_URL+'ucenter/searchAll', params, 'POST');
	//搜索圈子
	export const searchCircle = (params) => ajax(BASE_URL+'circle/searchCircle', params, 'POST');
	//搜索用户
	export const searchUser = (params) => ajax(BASE_URL+'ucenter/searchUser', params, 'POST');
	//搜索帖子
	export const searchArticle = (params) => ajax(BASE_URL+'article/searchArticle', params, 'POST');

//圈子
	//关注圈子
	export const followCircle = (params) => ajax(BASE_URL+'circle/followCircle', params, 'POST');
	//取消关注圈子
	export const unFollowCircle = (params) => ajax(BASE_URL+'circle/unFollowCircle', params, 'POST');
	//获取关注圈子列表
	export const getFollowCircleList = (params) => ajax(BASE_URL+'article/getFollowCircleList', params);
	//获取我创建的圈子
	export const getMyCircle = (params) => ajax(BASE_URL+'circle/getMyCircle', params);
	//获取创建圈子的进度
	export const getMyCircleStatus = (params) => ajax(BASE_URL+'circle/getMyCircleStatus', params);
	//获取圈子类型
	export const getCircleClassify = (params) => ajax(BASE_URL+'circle/getCircleClassify', params);
	//获取圈子用户排行榜
	export const circleUserLeaderBoard = (params) => ajax(BASE_URL+'circle/circleUserLeaderBoard', params);
	//获取用户等级规则
	export const getGradeRuleList = (params) => ajax(BASE_URL+'ucenter/getGradeRuleList', params);
	//获取推荐圈子列表
	export const recommendCircle = (params) => ajax(BASE_URL+'circle/recommendCircle', params);
	//获取圈内置顶的两条帖子
	export const getCircleOnTopArticle = (params) => ajax(BASE_URL+'article/getCircleOnTopArticle', params);
	//获取浏览圈子列表
	export const recentCircle = (params) => ajax(BASE_URL+'circle/recentCircle', params);
	//获取圈子首页帖子列表+最新评论
	export const getCircleArticle = (params) => ajax(BASE_URL+'article/getCircleArticle', params);
	//发帖功能
	export const sendPostArticle = (params) => ajax(BASE_URL+'article/sendPostArticle', params, 'POST');
	//签到/补签
	export const circleDaka = (params) => ajax(BASE_URL+'circle/circleDaka', params, 'POST');
	//更改圈子简介
	export const editCircleInfo = (params) => ajax(BASE_URL+'circle/editCircleInfo', params, 'POST');
	//获取圈内打卡情况
	export const getCircleDakaStatus = (params) => ajax(BASE_URL+'circle/getCircleDakaStatus', params);
	//检查是否具备申请成为圈主的条件
	export const requestCircleAdmin = (params) => ajax(BASE_URL+'circle/requestCircleAdmin', params, 'POST');
	//获取群相册
	export const getCircleImages = (params) => ajax(BASE_URL+'circle/getCircleImages', params);
	//上传群相册
	export const adminUploadCircleImage = (params) => ajax(BASE_URL+'circle/adminUploadCircleImage', params, 'POST');
	//删除图片
	export const delCirceImages = (params) => ajax(BASE_URL+'circle/delCirceImages', params, 'POST');
	//用户反馈帖子
	export const userReport = (params) => ajax(BASE_URL+'article/userReport', params, 'POST');
	//管理员屏蔽用户
	export const blockUser = (params) => ajax(BASE_URL+'circle/blockUser', params, 'POST');
	//提交创圈申请
	export const addCreateCircleApplication = (params) => ajax(BASE_URL+'circle/addCreateCircleApplication', params, 'POST');
	//圈子管理员删除帖子
	export const circleAdminDelArticle = (params) => ajax(BASE_URL+'article/circleAdminDelArticle', params, 'POST');
	//用户删除自己的帖子
	export const deleteArticle = (params) => ajax(BASE_URL+'article/deleteArticle', params, 'POST');
	//获取圈子管理员和圈主
	export const getCircleAdminList = (params) => ajax(BASE_URL+'circle/getCircleAdminList', params);
	//圈主删除圈子的分类（删除表白墙）
	export const delArticleClassify = (params) => ajax(BASE_URL+'circle/delArticleClassify', params, 'POST');
	//圈主新增圈子内的分类（给圈子新增什么表白墙、分手墙）
	export const addArticleClassify = (params) => ajax(BASE_URL+'circle/addArticleClassify', params, 'POST');
	//圈主编辑圈子分类
	export const editArticleClassify = (params) => ajax(BASE_URL+'circle/editArticleClassify', params, 'POST');
	//管理员置顶帖子
	export const setArticleOnTop = (params) => ajax(BASE_URL+'article/setArticleOnTop', params, 'POST');

//帖子详情
    //获取单个帖子详情
    export const getArticleDetail = (params) => ajax(BASE_URL+'article/getArticleDetail', params);
    //获取评论和回复
    export const getComment = (params) => ajax(BASE_URL+'message/getComment', params);
    //获取帖子评论列表
	export const getArticleCommentList = (params) => ajax(BASE_URL+'article/getArticleCommentList', params);
	//获取单个评论详情
	export const getCommentDetail = (params) => ajax(BASE_URL+'article/getCommentDetail', params);
	//获取帖子分类
	export const getEnableArticleClassify = (params) => ajax(BASE_URL+'article/getEnableArticleClassify', params);
    //新增帖子互动记录
    export const setInteractive = (params) => ajax(BASE_URL+'article/setInteractive', params, 'POST');
	//获取分享小程序码
	export const getShareQrCode = (params) => ajax(BASE_URL+'circle/getShareQrCode', params);
	//评论互动
	export const setCommentInteractive = (params) => ajax(BASE_URL+'article/setCommentInteractive', params, 'POST');
	//用户投票
	export const voteArticle = (params) => ajax(BASE_URL+'article/voteArticle', params, 'POST');
	//获取（最近）投票的用户
	export const getVoteUser = (params) => ajax(BASE_URL+'article/getVoteUser', params);
	
	

//个人中心
	//获取用户关注数、粉丝数、圈子关注数、获赞数
	export const getAllNumber = (params) => ajax(BASE_URL+'ucenter/getAllNumber', params);
	//获取关注列表
	export const getFollowUserList = (params) => ajax(BASE_URL+'ucenter/getFollowUserList', params);
	//获取当前用户粉丝列表
	export const getWasFollowUser = (params) => ajax(BASE_URL+'ucenter/getWasFollowUser', params);
	//获取查看用户的关注列表
	export const getUserFollowList = (params) => ajax(BASE_URL+'ucenter/getUserFollowList', params);
	//获取用户信息
	export const getUserInfo = (params) => ajax(BASE_URL+'ucenter/getUserInfo', params);
	//设置个人信息
	export const setUserInfo = (params) => ajax(BASE_URL+'ucenter/setUserInfo', params,'POST');
	//获取(登录/特定)用户的关注数量
	export const getUserFollowNumber = (params) => ajax(BASE_URL+'ucenter/getUserFollowNumber', params);
	//获取（特定/登录）用户的粉丝数量
	export const getUserWasFollowNumber = (params) => ajax(BASE_URL+'ucenter/getUserWasFollowNumber', params);
	//获取（特定/当前）用户收到的点赞数
	export const getUserWasGoodNumber = (params) => ajax(BASE_URL+'ucenter/getUserWasGoodNumber', params);
	//关注
	export const followUser = (params) => ajax(BASE_URL+'ucenter/followUser', params,'POST');
	//取关
	export const unFollowUser = (params) => ajax(BASE_URL+'ucenter/unFollowUser', params,'POST');
	//获取我(相关）的贴子列表
	export const getUserPartPostArticle = (params) => ajax(BASE_URL+'ucenter/getUserPartPostArticle', params);
	//获取特定用户公开的帖子列表
	export const getUserArticleList = (params) => ajax(BASE_URL+'ucenter/getUserArticleList', params);
	//获取用户的积分加键列表
	export const getUserIntegralList = (params) => ajax(BASE_URL+'ucenter/getUserIntegralList', params);
	//获取别人主页信息
	export const getUserHomePage = (params) => ajax(BASE_URL+'ucenter/getUserHomePage', params);
	//获取我收藏的帖子列表
	export const getFavoritePostArticleList = (params) => ajax(BASE_URL+'article/getFavoritePostArticleList', params);
	//发送反馈（反馈问题）
	export const sendReport = (params) => ajax(BASE_URL+'ucenter/sendReport', params,'POST');
	//获取管理的圈子id
	export const getMyAdminCircle = (params) => ajax(BASE_URL+'ucenter/getMyAdminCircle', params);
	
	
	
	
	

//消息
	//发送聊天消息
	export const sendChatMessage = (params) => ajax(BASE_URL+'message/sendChatMessage', params,'POST');
	//获取聊天信息
	export const getChatMessage = (params) => ajax(BASE_URL+'message/getChatMessage', params);
	//轮询
	export const getMessageStatus = (params) => ajax(BASE_URL+'message/getMessageStatus', params);
	//获取私信列表
	export const getMessageRecordList = (params) => ajax(BASE_URL+'message/getMessageRecordList', params);
	//删除私信列表
	export const delMessageRecord = (params) => ajax(BASE_URL+'message/delMessageRecord', params,'POST');
	//获取系统通知
	export const getSysNewsList = (params) => ajax(BASE_URL+'message/getSysNewsList', params);
	//获取系统通知详情
	export const getSysNewsDetail = (params) => ajax(BASE_URL+'message/getSysNewsDetail', params);
	
	//获取@我的
	export const getPostArticleAtMyList = (params) => ajax(BASE_URL+'message/getPostArticleAtMyList', params);
	
	//获取浏览历史
	export const getMyBrowseHistory = (params) => ajax(BASE_URL+'ucenter/getMyBrowseHistory', params);
	//获取我的评论
	export const getMyCommentList = (params) => ajax(BASE_URL+'ucenter/getMyCommentList', params);
	
	//匿名留言
	//创建匿名留言主题
	export const createAnonymousMessageTopic = (params) => ajax(BASE_URL+'ucenter/createAnonymousMessageTopic', params,'POST');
	//获取我的主题留言列表
	export const getMyTopicMessageList = (params) => ajax(BASE_URL+'ucenter/getMyTopicMessageList', params);
	//获取我创建的匿名留言主题列表
	export const getMyAnonymousMessageTopic = (params) => ajax(BASE_URL+'ucenter/getMyAnonymousMessageTopic', params);
	//留言
	export const sendAnonymousMessageToTopic = (params) => ajax(BASE_URL+'ucenter/sendAnonymousMessageToTopic', params,'POST');
	//删除主题
	export const delMyAnonymousMessageTopic = (params) => ajax(BASE_URL+'ucenter/delMyAnonymousMessageTopic', params,'POST');
	//删除留言
	export const delMyTopicMessage = (params) => ajax(BASE_URL+'ucenter/delMyTopicMessage', params,'POST');
	
	
	
	
	
	
	
	
	
	

//评论，回复
export const userComment = (params) => ajax(BASE_URL+'message/userComment', params,'POST');


//抽奖,活动
	//获取抽奖列表
	export const getActivityDraw = (params) => ajax(BASE_URL+'activity/get-activity-draw', params);
	//获取打折的数据
	export const getActivityBargainDetail = (params) => ajax(BASE_URL+'activity/get-activity-bargain-detail', params);
	//砍价
	export const cutAtivityBargainPrice = (params) => ajax(BASE_URL+'activity/cut-activity-bargain-price', params,'POST');
	//获取合成的二维码信息
	export const setUserDesc = (params) => ajax(BASE_URL+'activity/setUserDesc', params,'POST');
	//参加活动
	export const setActivityJoin = (params) => ajax(BASE_URL+'activity/set-activity-join', params,'POST');
	//获取活动详情
	export const getActivityDrawDetail = (params) => ajax(BASE_URL+'activity/get-activity-draw-detail', params);
	//获取活动参与人员
	export const getctivityJoinList = (params) => ajax(BASE_URL+'activity/get-activity-join-list', params);
	//助力
	export const setSupport = (params) => ajax(BASE_URL+'activity/setSupport', params,'POST');

	//获取助力人员
	export const getActivitySupportList = (params) => ajax(BASE_URL+'activity/get-activity-support-list', params);
	//获取活动胜出者
	export const getActivityWinList = (params) => ajax(BASE_URL+'activity/get-activity-win-list', params);
	
	
//积分商城
	//获取收货地址
	export const getShippingAddress = (params) => ajax(BASE_URL+'ucenter/getShippingAddress', params);
	//新增收货地址
	export const newShippingAddress = (params) => ajax(BASE_URL+'ucenter/newShippingAddress', params,'POST');
	//获取商品列
	export const getGoodsList = (params) => ajax(BASE_URL+'goods/getGoodsList', params);
	//获取商品详情
	export const getGoodsDetails = (params) => ajax(BASE_URL+'goods/getGoodsDetails', params);
	//创建订单
	export const buildOrder = (params) => ajax(BASE_URL+'order/buildOrder', params,'POST');
	//积分订单支付
	export const integralPayment = (params) => ajax(BASE_URL+'payment/integralPayment', params,'POST');
	//获取积分兑换商品记录
	export const getIntegralExchangeList = (params) => ajax(BASE_URL+'ucenter/getIntegralExchangeList', params);
	//任务列表
	export const getTaskList = (params) => ajax(BASE_URL+'ucenter/getTaskList', params);
	//完成任务
	export const receiveIntegral = (params) => ajax(BASE_URL+'ucenter/receiveIntegral', params,'POST');
	
	
	
	
	
	
	
	

	
	








